<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>天禾人才</title>
	<meta name="format-detection" content="telephone=no">
	<meta name="viewport" content="minimal-ui=yes,width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta name="msapplication-tap-highlight" content="no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">

	<link rel="stylesheet" type="text/css" href="css/public.css">
	<link rel="stylesheet" type="text/css" href="css/news.css">
	
</head>
<body>
	<div class="header">
		<div class="top">
			<div class="sn-nav-back">
				<a href="javascript:;"><img src="img/back.png" onclick="javascript:history.back(-1);"></a>
			</div>
			<div class="sn-nav-title of">详情</div>
		</div>
	</div>
	<div class="container">
		<div class="news">
			<ul id="new_detail">
			</ul>
		</div>
	</div>
<script type="text/javascript" src="js/jquery.min.js" ></script>
<script type="text/javascript" src="js/base.js" ></script>
<script type="text/javascript" src="/resources/js/wbkDate.js" ></script>
<script type="text/javascript">
var hash = window.location.hash; 

function load(data){
	var defaultParam = {};
	$.ajax({
		url : "/news/getNewsById",
		data : $.extend(defaultParam,data),
		type : "post",
		dataType : "json",
		success : function(data) {
			var append = "";
			if(data != null){
				append = data.data.content;
			}
			$('#new_detail').empty().append(append);			
		},
		error : function(jqXHR, textStatus, errorThrown) {
			alert(jqXHR.responseText);
		}
	})
}

(function init(){
	if(hash == "notice"){
		$('.sn-nav-title').html("平台公告");
	}
	if(hash == "news"){
		$('.sn-nav-title').html("行业动态");
	}
	
	load({"id":hash.substring(1)});
})();

</script>	
</body>

</html>